<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>UploadPage</title>
</head>
<body>
<h1>upload form, which not only contains text field, but also one file.</h1>
<form method="post" action="<c:url value="/test/fileform/addFrom"/>" 
enctype="multipart/form-data">
<table>
	<tr>
		<td>标题</td>
		<td><input type="text" name="title"></td>
	</tr>
	<tr>
		<td>描述</td>
		<td><input type="text" name="descrption"></td>
	</tr>
	<tr>
		<td>照片1</td>
		<td><input type="file" name="file1"></td>
	</tr>
		<tr>
		<td>照片2</td>
		<td><input type="file" name="file2"></td>
	</tr>
	<tr><td colspan="2"><input type="submit" value="提交"></td></tr>	
</table>
</form>
</body>
</html>